package com.dcd.service.impl;

import com.dcd.mapper.EnergyMapper;
import com.dcd.pojo.Energy;
import com.dcd.service.EnergyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EnergyServiceImpl implements EnergyService {

    @Autowired
    private EnergyMapper energyMapper;

    /**
     * 查询全部能源
     * @return
     */
    @Override
    public List<Energy> select_all_energy() {
        return energyMapper.select_all_energy();
    }
}
